package com.ncamc.pms.core.common.constants;

import com.ncamc.next.common.exception.AbstractProjectCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 异常code 枚举
 */
@Getter
@AllArgsConstructor
public enum ExceptionCodeEnum implements AbstractProjectCode {

    FEIGN_CALL_ERROR(100, "Feign服务不存在或网络断开,错误原因:%s"),
    KETTLE_DOES_NOT_EXIST(1000, "kettle数据不存在 %s"),
    READ_KETTLE_FILE_ERROR(1001, "获得kettle文件 %s 失败"),
    DB_CONFIG_DOES_NOT_EXIST(1002, "缺少数据库配置"),
    KETTLE_EXEC_ERROR(1003, "kettle文件 %s 执行失败"),
    ;
    private final int code;
    private final String message;
}
